import hashlib

f1 = hashlib.sha1()
f1.update("https://weibo.cn/search/mblog?hideSearchFrame=&keyword=%23%E5%A5%BD%E7%89%A9%E5%88%86%E4%BA%AB%23&advancedfilter=1&hasori=1&starttime=20191029&endtime=20191031&sort=time".encode())
print(f1.hexdigest())

f2 = hashlib.sha1()
f2.update("https://weibo.cn/search/mblog?hideSearchFrame=&keyword=%23%E5%A5%BD%E7%89%A9%E5%88%86%E4%BA%AB%23&advancedfilter=1&hasori=1&starttime=20191029&endtime=20191031&sort=time&page=1".encode())
# f2.update("https://weibo.cn/search/mblog?hideSearchFrame=&keyword=%23%E5%A5%BD%E7%89%A9%E5%88%86%E4%BA%AB%23&advancedfilter=1&hasori=1&starttime=20191029&endtime=20191031&sort=time".encode())
print(f2.hexdigest())

a = [i for i in range(0,10)]
print(a)
# 左闭右开区前
print(a[0:5:1])
print(a[:6:-1])